package com.yc.txx.mapper;

import com.yc.txx.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 大麦商城-用户表-4 Mapper 接口
 * </p>
 *
 * @author 廖老师
 * @since 2023-04-30
 */
public interface UserMapper extends BaseMapper<User> {

    @Select("select * from user where ename=#{ename} and password=#{pwd}")
    User selectForLogin(@Param("ename") String name,
                        @Param("pwd") String pwd);

}
